#ifndef COORDINATETRANSFORMATION_H
#define COORDINATETRANSFORMATION_H

#include <iostream>
#include <math.h>

#define R 6378245.0	//地球半径（赤道）
#define PI 3.1415926535897932384626
#define EE 0.00669342162296594323
#define LON_BOUNDARY_MIN 72.004
#define LAT_BOUNDARY_MIN 0.8293
#define LON_BOUNDARY_MAX 137.8347
#define LAT_BOUNDARY_MAX 55.8271
#define X_PI 3.14159265358979324 * 3000.0 / 180.0

using namespace std;

static pair<double, double> getLngLat(double &dist, double &lng, double &lat, pair<double, double> &rpos);
static pair<double, double> getAngleDist(double lng1, double lat1, double lng2, double lat2);

#endif // COORDINATETRANSFORMATION_H
